package cn.web.web_module.service;

import cn.itcast.pojo.admin;
import cn.itcast.pojo.user;
import cn.itcast.util.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author: 张松
 * @Description:
 * @Date: Created in 10:28 2020/7/11
 * @Modified By:
 */
public interface LogOrRegisterService {

    public void LogOrRegister(String Phone);

    public user selectUserIfHavePhone(user user);

    public Integer WXBindPhone(user user,String code);


    ResponseEntity userLog(HttpServletRequest request, HttpServletResponse response, String phone, String code);

    /**
     *
     * @Description: 查看手机号对应的管理员
     *
     * @auther: 张松
     * @date: 10:52 2020/7/15
     * @param: [phone]
     * @return: cn.itcast.pojo.admin
     *
     */
    admin selectAdminPhone(String phone);


    /**
     *
     * @Description: 修改密码
     *
     * @auther: 张松
     * @date: 18:16 2020/7/15
     * @param: []
     * @return: cn.itcast.pojo.admin
     *
     */
    Integer updatePassword(String phone , String code,String password);
}
